Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODPart


FacetRemoved

The FacetRemoved method is called to notify this part that a facet has been removed from one of its display frames.

void FacetRemoved (in ODFacet facet);
facet
A reference to a facet that has been removed.
DISCUSSION
OpenDoc calls this method when your part's containing part removes a facet from one of your part's display frames. If your part is the root part in a window, OpenDoc also calls this method when the window is closed.

Your part's FacetRemoved method should perform any actions necessary to handle the removal of the facet. In general, the actions performed by this method should reverse those performed by the FacetAdded method. If your part does not support asynchronous display and is not a container part, its response to this call can be minimal.

OVERRIDING
When you subclass ODPart, you must override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely.

EXCEPTIONS
kODErrInvalidFacet
The specified facet is not a facet of this part.
SEE ALSO
The ODFrame::FacetRemoved method (page 319).
The ODPart::FacetAdded method (page 514).
"The FacetRemoved Method" on page 76 in OpenDoc Cookbook.
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Responding to Added or Removed Facets" on page 107 in OpenDoc Programmer's Guide.
"Removing a Facet" on page 123 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help